/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PACOTESVALORES")
public class PacotesValoresProteu implements Serializable{

    @Id
    @Column(name="PCT_ST_CODIGO")
    private String pctStCodigo;
    @Id
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Id
    @Column(name="PCV_DT_INICIAL")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pcvDtInicial;

    @Column(name="PCV_FL_VALOR")
    private Float pcvFlValor;
    @Column(name="PCV_DT_FINAL")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pcvDtFinal;
    @Column(name="PCV_SYS_USUARIO")
    private String pcvSysUsuario;
    @Column(name="PCV_SYS_DATA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pcvSysData;

    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getPctStCodigo() {
        return pctStCodigo;
    }

    public void setPctStCodigo(String pctStCodigo) {
        this.pctStCodigo = pctStCodigo;
    }

    public Date getPcvDtFinal() {
        return pcvDtFinal;
    }

    public void setPcvDtFinal(Date pcvDtFinal) {
        this.pcvDtFinal = pcvDtFinal;
    }

    public Date getPcvDtInicial() {
        return pcvDtInicial;
    }

    public void setPcvDtInicial(Date pcvDtInicial) {
        this.pcvDtInicial = pcvDtInicial;
    }

    public Float getPcvFlValor() {
        return pcvFlValor;
    }

    public void setPcvFlValor(Float pcvFlValor) {
        this.pcvFlValor = pcvFlValor;
    }

    public Date getPcvSysData() {
        return pcvSysData;
    }

    public void setPcvSysData(Date pcvSysData) {
        this.pcvSysData = pcvSysData;
    }

    public String getPcvSysUsuario() {
        return pcvSysUsuario;
    }

    public void setPcvSysUsuario(String pcvSysUsuario) {
        this.pcvSysUsuario = pcvSysUsuario;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PacotesValoresProteu other = (PacotesValoresProteu) obj;
        if ((this.pctStCodigo == null) ? (other.pctStCodigo != null) : !this.pctStCodigo.equals(other.pctStCodigo)) {
            return false;
        }
        if ((this.conStCodigo == null) ? (other.conStCodigo != null) : !this.conStCodigo.equals(other.conStCodigo)) {
            return false;
        }
        if (this.pcvDtInicial != other.pcvDtInicial && (this.pcvDtInicial == null || !this.pcvDtInicial.equals(other.pcvDtInicial))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + (this.pctStCodigo != null ? this.pctStCodigo.hashCode() : 0);
        hash = 59 * hash + (this.conStCodigo != null ? this.conStCodigo.hashCode() : 0);
        hash = 59 * hash + (this.pcvDtInicial != null ? this.pcvDtInicial.hashCode() : 0);
        return hash;
    }

    

}
